c4abe2e
@@ -86,7 +86,7 @@
public static String getValidConfVar(HiveConf.ConfVars confVar, HiveConf hiveCon
     if (confVarStr == null || confVarStr.isEmpty()) {
       throw new IOException("Empty " + confVar.varname);
     }
-    return confVarStr;
+    return confVarStr.trim();
   }
 
   public interface NestedScriptParser {
